package com.internetCafes.spms.web.project.entity.dto.projectconfig;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Date;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 项目修改请求参数
 *
 * @author Zj
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProjectUpdateDTO {

    @ApiModelProperty(value = "数据唯一标识id")
    private Long id;

    @ApiModelProperty(value = "项目名称", required = true)
    private String projectName;

    @ApiModelProperty(value = "项目种类")
    private String category;

    @ApiModelProperty(value = "项目编号")
    private String serialNumber;

    @ApiModelProperty(value = "项目状态 1-中标、2-待建、3-在建、4-竣工", required = true)
    private Integer statusTag;

    @ApiModelProperty(value = "项目负责人部门id", required = true)
    private Long deptId;

    @ApiModelProperty(value = "项目负责人id", required = true)
    private Long employeeId;

    @ApiModelProperty(value = "项目负责人手机号")
    private String employeeMobile;

    @ApiModelProperty(value = "建设单位")
    private String constructCompany;

    @ApiModelProperty(value = "项目地址")
    private String address;

    @ApiModelProperty(value = "合同开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime contractStartTime;

    @ApiModelProperty(value = "合同结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date contractEndTime;

    @ApiModelProperty(value = "实际开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date actualStartTime;

    @ApiModelProperty(value = "实际结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date actualEndTime;

    @ApiModelProperty(value = "项目金额(万元)")
    private BigDecimal price;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "附件地址列表")
    private List<String> fileList;
}
